﻿@model DAL.Models.Materials

@{
    ViewBag.Title = "Detalles";
}

<h2>Detalles</h2>
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

<fieldset>
    <legend>Material</legend>

    <div class="display-label">Autor</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Autors.Nombre)
    </div>

    <div class="display-label">Editorial</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Editorials.Nombre)
    </div>

    <div class="display-label">TipoMaterial</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.TipoMaterials.Descripcion)
    </div>

    <div class="display-label">Titulo</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Titulo)
    </div>

    <div class="display-label">Codigo</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Codigo)
    </div>

    <div class="display-label">Sinopsis</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Sinopsis)
    </div>

    <div class="display-label">CantidadEjemplares</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.CantidadEjemplares)
    </div>
</fieldset>
<p>
    @Html.ActionLink("Editar", "Edit", new { id=Model.id }) |
    @Html.ActionLink("Volver al Listado", "Index")
</p>
